package com.cysyz.mylib.dao.sqloperaterrevolver.impl;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by cy on 2014/7/29.
 */
public class SimpleOperatorRevolver extends BaseSqlOperatorRevolver {

    @Override
    public void addCond(StringBuilder sqlBuilder, List<Object> params, String column, String operator, Object value) {
        if (operator.equals("<=") && value.equals("+")) {
            return;
        }
        addOneCond(sqlBuilder, params, column, operator, value);
    }


    @Override
    protected List<String> getSupportOperatorList() {
        List<String> supportList = new ArrayList<String>();
        supportList.add("=");
        supportList.add(">=");
        supportList.add(">");
        supportList.add("<");
        supportList.add("<=");
        return supportList;
    }

}
